SftTree/OCX 7.0

SftTree.VirtualCount Method

Softel vdm, Inc.

Defines the number of items in the control in virtual mode.

Syntax       

VB.NET

object.VirtualCount(ByVal Total As Integer)

VB

object.VirtualCount(ByVal Total As Long)

C#.NET

void object.VirtualCount(int Total);

VC++

HRESULT object->VirtualCount(long Total);

C

HRESULT object->raw_VirtualCount(long Total);

Delphi

procedure object.VirtualCount(Total : Integer);

object

A SftTree object.

Total

The number of items in the control in virtual mode.

Comments

The VirtualCount method defines the number of items in the control in virtual mode.

The VirtualCount method defines the number of items when using a virtual data source.  It specifies the current number of items to be managed by the tree control (including visible and hidden items).

If the tree control is not a virtual tree control (items have been added using Items.Add or Items.Insert), this method will fail.

Whenever the number of items in the virtual data source changes, the application can call this method to notify the tree control.

If the number of items is changed using VirtualCount, the tree control does not preserve the current index or the current selections.  It is up to the application to preserve or update these.

The Items.Count property can be used to retrieve the current number of items.

Only flat lists (without hierarchy) are supported in virtual mode

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com